package com.yunding;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;


@MapperScan(basePackages = {"com.yunding.house.mapper" ,"com.yunding.OA.mapper"})
@EnableCaching
@SpringBootApplication
@EnableConfigurationProperties
@EnableScheduling
public class App {
    public static void main(String[] args) {
        System.out.println("(♥◠‿◠)ﾉﾞ  云集家项目开始启动   ლ(´ڡ`ლ)ﾞ");
        SpringApplication.run(App.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  云集家项目启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");

    }

    /** * 分页插件 */ @Bean
    public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); }

}
